package com.ddx.dao;

import com.ddx.pojo.ShoppingCart;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingCart record);

    int insertSelective(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingCart record);

    int updateByPrimaryKey(ShoppingCart record);

    List<ShoppingCart> selectByRecord(ShoppingCart record);

    /**
     * 查出购物车商家数
     * @param record
     * @return
     */
    List<ShoppingCart> selectGroupStore(ShoppingCart record);
}